import request from '@/utils/request'

// 查询路段管理列表
export function listRoadmanage(query) {
  return request({
    url: '/snowRemoving/roadmanage/list',
    method: 'get',
    params: query
  })
}

// 查询路段管理详细
export function getRoadmanage(id) {
  return request({
    url: '/snowRemoving/roadmanage/' + id,
    method: 'get'
  })
}

// 新增路段管理
export function addRoadmanage(data) {
  return request({
    url: '/snowRemoving/roadmanage',
    method: 'post',
    data: data
  })
}

// 修改路段管理
export function updateRoadmanage(data) {
  return request({
    url: '/snowRemoving/roadmanage',
    method: 'put',
    data: data
  })
}

// 删除路段管理
export function delRoadmanage(id) {
  return request({
    url: '/snowRemoving/roadmanage/' + id,
    method: 'delete'
  })
}
